package com.sc.study.foundation.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.TreeEntity;

/**
 * 违纪类型对象 sc_violation_type
 * 
 * @author sc
 * @date 2022-03-14
 */
public class ScViolationType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String info;

    /** 扣分值 */
    @Excel(name = "扣分值")
    private Long deductsocre;

    /** 权重 */
    @Excel(name = "权重")
    private Long weight;
    /** 权重 */
    @Excel(name = "父级编号")
    private Long parentid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setDeductsocre(Long deductsocre) 
    {
        this.deductsocre = deductsocre;
    }

    public Long getDeductsocre() 
    {
        return deductsocre;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }

    public Long getParentid() {
        return parentid;
    }

    public void setParentid(Long parentid) {
        this.parentid = parentid;
    }

    //    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("id", getId())
//            .append("name", getName())
//            .append("parentid", getParentid())
//            .append("info", getInfo())
//            .append("deductsocre", getDeductsocre())
//            .append("weight", getWeight())
//            .toString();
//    }
}
